package high.concurrent.controller;


import high.concurrent.service.BannerService;
import high.concurrent.utils.JsonData;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 商品轮播图表 前端控制器
 * </p>
 *
 * @author 黄保泽
 * @since 2021-07-18
 */
@RestController
@RequestMapping("/api/banner/v1/")
@Api(tags = "轮播图模块")
public class BannerController {

    @Autowired
    private BannerService bannerService;


    /**
     * 轮播图列表查询
     * 轮播图不需要登录也可以进，是首页上方大轮播图，所以不需要拦截器
     * @return
     */
    @ApiOperation(value = "轮播图列表查询")
    @GetMapping("selectBannerList")
    public JsonData selectBannerList(){

        JsonData jsonData = bannerService.selectBannerList();
        return jsonData;
    }

}

